<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:c="http://java.sun.com/jstl/core">

<h:head>
	<title>Peças</title>
</h:head>
<h:body style="text-align: center">
	<h2 style="text-align: center">Peça</h2>
	<table align="center">
		<h:form style="text-align: center">
			<h:dataTable style="text-align: center" id="pecas"
				value="#{peca.tabelaPecas}" var="peca" border="1" cellpadding="2"
				cellspacing="2">
				<h:column>
					<f:facet name="header">
						<h:outputText value="ID" />
					</f:facet>
					<h:outputText value="#{peca.id}" />
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="NOME" />
					</f:facet>
					<h:outputText value="#{peca.nome}" />
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Descrição" />
					</f:facet>
					<h:outputText value="#{peca.descricao}" />
				</h:column>
			</h:dataTable>
		</h:form>
	</table>
	<br></br>
	<a href="../index.xhtml" style="text-align: center">VOLTAR ...</a>
</h:body>

</html>